package com.cn.bukeManage.dao;

import java.util.List;
import java.util.Map;
import java.util.Set;

import com.cn.bukeManage.pojo.Resource;
import com.cn.bukeManage.pojo.Role;
import com.cn.bukeManage.pojo.User;

public interface UserDao {

	User getUserByUser(User user);
	
	User selectUserByName(String userName);
	
	Set<Role>selectRoles(Integer userId);
	
	Set<Resource>selectResources(Integer userId);

	Integer getUserIdByCustomerPhone(String customerPhone);

	int isUserExit(User user);

	void updateUser(User user);

	Double selectMyWallet(String userName);

	User getUserById(Integer userId);

	Integer blockUp(Integer userId);
	
	List<Map<String,Object>>selectAllUsers(Map<String,Object>map);
	
	int selectUsersCount();

}
